<div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
        <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
        <ul class="layui-nav layui-nav-tree"  lay-filter="test">
            @foreach ($category as $v)
            <li class="layui-nav-item layui-nav-itemed">
                <a class="" href="javascript:;">{{ $v['name'] }}</a>
                @if (count($v['son']) > 0)
                    <dl class="layui-nav-child">
                        @foreach ($v['son'] as $vv)
                            <dd><a href="{{url($vv['config'])}}">{{ $vv['name'] }}</a></dd>
                        @endforeach
                    </dl>
                @endif
            </li>
            @endforeach
        </ul>
        <!-- end -->
    </div>
</div>
<script src="{{URL::asset('/layui/layui.js')}}"></script>
